package com.xing.Menu.Entity;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author xingxing
 *
 */
@Entity
@Table(name="T_ROLE_MENU")
public class RoleAndMenu implements Serializable {
	/**
	 * 实现Serializable 接口后点击F2 提示两种一种1L另一种 就下边的
	 * 序列化 随机生成 作为标识存在，用来在缓存中找回
	 */
	private static final long serialVersionUID = 6770662514458320389L;

	@Id
	@GeneratedValue
	@Column(name="rmid")
	private String rmid;
	@Column
	private String menuid;
	@Column
	private String roleid;
	public String getRmid() {
		return rmid;
	}
	public void setRmid(String rmid) {
		this.rmid = rmid;
	}
	public String getMenuid() {
		return menuid;
	}
	public void setMenuid(String menuid) {
		this.menuid = menuid;
	}
	public String getRoleid() {
		return roleid;
	}
	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}
	
	
}
